package com.example.mapper;

import com.example.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    @Results({
            @Result(property = "dateUpdated",column = "date_updated"),
            @Result(property = "dateCreated",column = "date_updated"),
            @Result(property = "accountStatus",column = "account_status")}
    )
    @Select("select * from t_shiro_user where name = #{userName}#")
    public User queryUserByname(String userName);
}
